// pages/xwdt/xwdt.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isHangye: false,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    var paper = options.paper;
    switch (paper) {
      case '1' :
        that.setData({
          isHangye:false
        });
        break;
      case '2':
        that.setData({
          isHangye: true
        });
        break;
    }
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  goQY: function () {
    var that = this;
    that.setData({
      isHangye: false
    })
  },

  goHY:function(){
    var that = this;
    that.setData({
      isHangye: true
    })
  },
})